<?php

//error_reporting(E_ALL);

$plugin_info = array(
  'pi_name' => 'Dummy NCform handler',
  'pi_version' => '0.1',
  'pi_author' => 'Alex Glover',
  'pi_author_url' => 'http://ncsoft.com/',
  'pi_description' => 'Demonstrates how to pass the output of ncform to another plugin',
  'pi_usage' => Dummy_ncform_handler::usage()
  );

class Dummy_ncform_handler
{

	function __construct()
	{
	
	}
	
	function handle_submission()
	{
		ob_start();
		print(get_class($this)."::handle_submission()<br/>\n");
		print("This plugin was called from NC form<br/>\n");
		print("submitted values<br/>:\n<pre>\n");
		print_r($_POST);
		print("</pre><br/>");
		$result = ob_get_contents();
		ob_end_clean();
		
		return $result;
	}

  // ----------------------------------------
  //  Plugin Usage
  // ----------------------------------------

  // This function describes how the plugin is used.
  //  Make sure and use output buffering

  function usage()
  {
  ob_start(); 
  ?>

  

  <?php
  $buffer = ob_get_contents();
	
  ob_end_clean(); 

  return $buffer;
  }
  // END

}

?>


